package homework2;

import java.util.Arrays;

/**
 * 默认排序
 */
public class DefaultProductSort implements ProductSort {
    @Override
    public void sort(Product[] products) {
        Arrays.sort(products, (p1, p2) -> p1.getSales() - p2.getSales());
    }
}